import request from '@/utils/request.js'

// 分类 获取文章列表
export const artGetChannelsService = () => request.get('/my/cate/list')
// 分类 添加文章列表
export const artAddChannelService = data => request.post('/my/cate/add', data)
// 分类 编辑文章列表
export const artEditChannelService = data => request.put('/my/cate/info', data)
// 分类 删除文章列表
export const artDelChannelService = id =>
	request.delete('/my/cate/del', { params: { id } })
//
// 文章详情 获取已有的文章详情
export const artGetListService = params =>
	request.get('/my/article/list', { params })
// 文章详情 发布
export const artPublishService = data => request.post('/my/article/add', data)
// 文章详情 回显
export const artGetDetailService = id =>
	request.get('/my/article/info', { params: { id } })
// 文章详情 编辑
export const artEditService = data => request.put('/my/article/info', data)
// 文章详情 删除
export const artDelService = id =>
	request.delete('/my/article/info', { params: { id } })
